<varout> : Send Variable Value To Target Application

Sends (outputs) variable's value to the active window as a sequence of keystrokes or through the clipboard.

Syntax:

<varout>("Variable", Clipboard)

Variable
Variable to send out.

Clipboard 
If 1, the variable value is send to the active window through the clipboard.
If 0, the variable value is send to the active window as a sequence of keyboard keystrokes.

Example: 

<#> This macro demonstrates use of <varout> command
<#> The macro activates Notepad and writes a text in it.
<#>
<cmds>
<if_win>("Notepad","OPEN",0)
   <actwin>("Notepad",0,0,"no")
   <waitfor>("WIN","ACT","Notepad",5,0)
   <if_win>("Notepad","ACT",0)
      <varset>("vText=This is Notepad","")
      <varout>("vText",0)
   <endif>
<else>
   <msg>(100,100,"Notepad is not running.","Message",1)
<endif>)